package com.lottery.material.util;

import java.util.Map;

import org.codehaus.jackson.map.util.JSONPObject;

import com.lottery.material.pojo.page.PageData;

public class AppUtil  {
	
	@SuppressWarnings("rawtypes")
	public static Object returnObject(PageData pd, Map map){
		if(pd.containsKey("callback")){
			String callback = pd.get("callback").toString();
			return new JSONPObject(callback, map);
		}else{
			return map;
		}
	}
	
}
